﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using RTEditor;

public class AnchorGroupManager
{
    /// <summary>
    /// 检修区域锚点配置字典
    /// </summary>
    public Dictionary<string, AnchorGroup> AnchorGroupDataDict { get; private set; }

    #region 单例
    private AnchorGroupManager()
    {
        AnchorGroupDataDict = new Dictionary<string, AnchorGroup>();
    }
    private static readonly object lockerObj = new object();
    private static AnchorGroupManager _instance;
    public static AnchorGroupManager Instance
    {
        get
        {
            if (_instance == null)
            {
                lock (lockerObj)
                {
                    if (_instance == null)
                    {
                        _instance = new AnchorGroupManager();
                    }
                }
            }
            return _instance;
        }
    }
    #endregion

    public void AddAnchorGroup(string key, AnchorGroup anchorGroup)
    {
        
    }

    public void DelAnchorGroup()
    {

    }

    private void DrawAnchorGroupArea(List<Anchor> anchors)
    {

    }

}
